import { get, post } from "./http"

//注册
export const reqRegister = params => post("/api/register", params)
//登录
export const reqLogin = params => post("/api/login", params)

//轮播图
export const reqBanner=()=>get("/api/getbanner")

//新人专享
export const reqGetnew=()=>get("/api/getnew")

//万人团
export const reqGroupon=()=>get("/api/getgroupon")

//倒计时
export const reqCountdown=()=>get("/api/getcountdown")

//秒杀
export const reqSeckill=()=>get("/api/getseckill")

//首页商品
export const reqIndexGoods=()=>get("/api/getindexgoods")

//分类数据
export const reqCateList=()=>get("/api/getcate")

//分类商品
export const reqCateGoods=(params)=>get("/api/getgoods",params)

//详情
export const reqDetail=(params)=>get("/api/getgoodsinfo",params)

//添加购物车
export const reqShopAdd=(params)=>post("/api/cartadd",params)

//购物车列表
export const reqShopList=(params)=>get("/api/cartlist",params)

//购物车删除
export const reqShopDel=(params)=>post("/api/cartdelete",params)